package com.zuozuo.lambda;

public class PrintableDemo {
    public static void main(String[] args) {
        usePrintable(s -> System.out.println(s));
        usePrintable(System.out::println);
        usePrintable(PrintableDemo::fun);
    }
    private static void usePrintable(Printable s){
        s.printString("热爱生活！");

    }
    private static void fun(String s){
        System.out.println(s);
    }
}
